package yf.mall.enums;

import lombok.Getter;
import java.util.Arrays;


/**
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 10:19:54 CST 2020
 */
@Getter
public enum ShopLogTemStatusEnum {


                   LOWEST(0,"禁用")
                                    ,
                
            
                   HIGHEST(1,"正常");

        
        int index;
        String value;

    public static String[] names(){
        return Arrays.stream(ShopLogTemStatusEnum.values()).map(m->m.getValue()).toArray(String[]::new);
    }

    ShopLogTemStatusEnum(int index,String value) {
        this.index = index;
        this.value = value;
        }

    public static String indexOf(int idx) {
        return ShopLogTemStatusEnum.values()[idx].getValue();
    }

}
